package com.wh1200.mybatis.dao.tests

import com.wh1200.mybatis.dao.BaseTest
import com.wh1200.xmlless.test.dao.StudentDAO
import com.wh1200.xmlless.test.model.Student
import jakarta.annotation.Resource
import org.junit.jupiter.api.Test

/**
 *
 * @author 吴昊
 * @date 2023/12/15 21:40
 * @since v4.0.0
 * @version 1.0
 */

class StudentDAOMapperTest : BaseTest() {


  @Resource
  private lateinit var dao: StudentDAO

  @Test
  fun find() {
    dao.saveAll(
        listOf(
            Student(name = "a"),
            Student(name = "b"),
        )
    )
    val res = dao.selectUserMapper()
    println(res)
  }
}
